package com.quzubuluo.quzutool.model;

import com.quzubuluo.quzutool.base.BaseResponse;

import java.util.Map;

import io.reactivex.Observable;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.PartMap;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2017/8/7.
 */

public interface InputService {


    @Multipart
    @POST("/server_api//partner/inputInfo")
    Observable<BaseResponse> inputInfo(@Query("username") String username,
                                       @Query("mobile") String mobile,
                                       @Query("address") String address,
                                       @Query("idCardNo") String idCardNo,
                                       @Query("imei") String imei,
                                       @Query("goodsName") String goodsName,
                                       @Query("color") String color,
                                       @Query("capacity") String capacity,
                                       @Query("goodsAmount") String goodsAmount,
                                       @Query("partner") String partner,
                                       @Query("invoiceNo") String invoiceNo,
                                       @Query("shippingTime") String shippingTime,
                                       @PartMap Map<String, RequestBody> picFiles);

    @FormUrlEncoded
    @POST("/server_api//partner/inputInfo")
    Observable<BaseResponse> inputInfo(@Field("username") String username,
                                       @Field("mobile") String mobile,
                                       @Field("address") String address,
                                       @Field("idCardNo") String idCardNo,
                                       @Field("imei") String imei,
                                       @Field("goodsName") String goodsName,
                                       @Field("color") String color,
                                       @Field("capacity") String capacity,
                                       @Field("goodsAmount") String goodsAmount,
                                       @Field("partner") String partner,
                                       @Field("invoiceNo") String invoiceNo,
                                       @Field("shippingTime") String shippingTime);

}
